package cn.wolfcode.plus.service.impl;

import cn.wolfcode.plus.domain.Permission;
import cn.wolfcode.plus.mapper.PermissionMapper;
import cn.wolfcode.plus.qo.PageResult;
import cn.wolfcode.plus.qo.QueryObject;
import cn.wolfcode.plus.service.IPermissionService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * Author wyy
 * Date 2021/2/16 17:18
 **/
@Service
public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission>
        implements IPermissionService {
    @Override
    public PageResult<Permission> query(QueryObject qo) {
        return new PageResult<>(this.page(new Page<>(qo.getCurrentPage(),qo.getPageSize())));
    }
}
